﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E9F RID: 3743
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDialogueOptionDisplayInfo : IMessage<RogueCommonDialogueOptionDisplayInfo>, IMessage, IEquatable<RogueCommonDialogueOptionDisplayInfo>, IDeepCloneable<RogueCommonDialogueOptionDisplayInfo>, IBufferMessage
	{
		// Token: 0x17002F7D RID: 12157
		// (get) Token: 0x0600A7B7 RID: 42935 RVA: 0x001C5255 File Offset: 0x001C3455
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDialogueOptionDisplayInfo> Parser
		{
			get
			{
				return RogueCommonDialogueOptionDisplayInfo._parser;
			}
		}

		// Token: 0x17002F7E RID: 12158
		// (get) Token: 0x0600A7B8 RID: 42936 RVA: 0x001C525C File Offset: 0x001C345C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionDisplayInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F7F RID: 12159
		// (get) Token: 0x0600A7B9 RID: 42937 RVA: 0x001C526E File Offset: 0x001C346E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionDisplayInfo.Descriptor;
			}
		}

		// Token: 0x0600A7BA RID: 42938 RVA: 0x001C5275 File Offset: 0x001C3475
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionDisplayInfo()
		{
		}

		// Token: 0x0600A7BB RID: 42939 RVA: 0x001C527D File Offset: 0x001C347D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionDisplayInfo(RogueCommonDialogueOptionDisplayInfo other) : this()
		{
			this.displayFloatValue_ = other.displayFloatValue_;
			this.displayIntValue_ = other.displayIntValue_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A7BC RID: 42940 RVA: 0x001C52AE File Offset: 0x001C34AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionDisplayInfo Clone()
		{
			return new RogueCommonDialogueOptionDisplayInfo(this);
		}

		// Token: 0x17002F80 RID: 12160
		// (get) Token: 0x0600A7BD RID: 42941 RVA: 0x001C52B6 File Offset: 0x001C34B6
		// (set) Token: 0x0600A7BE RID: 42942 RVA: 0x001C52BE File Offset: 0x001C34BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float DisplayFloatValue
		{
			get
			{
				return this.displayFloatValue_;
			}
			set
			{
				this.displayFloatValue_ = value;
			}
		}

		// Token: 0x17002F81 RID: 12161
		// (get) Token: 0x0600A7BF RID: 42943 RVA: 0x001C52C7 File Offset: 0x001C34C7
		// (set) Token: 0x0600A7C0 RID: 42944 RVA: 0x001C52CF File Offset: 0x001C34CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int DisplayIntValue
		{
			get
			{
				return this.displayIntValue_;
			}
			set
			{
				this.displayIntValue_ = value;
			}
		}

		// Token: 0x0600A7C1 RID: 42945 RVA: 0x001C52D8 File Offset: 0x001C34D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDialogueOptionDisplayInfo);
		}

		// Token: 0x0600A7C2 RID: 42946 RVA: 0x001C52E8 File Offset: 0x001C34E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDialogueOptionDisplayInfo other)
		{
			return other != null && (other == this || (ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.DisplayFloatValue, other.DisplayFloatValue) && this.DisplayIntValue == other.DisplayIntValue && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A7C3 RID: 42947 RVA: 0x001C533C File Offset: 0x001C353C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DisplayFloatValue != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.DisplayFloatValue);
			}
			if (this.DisplayIntValue != 0)
			{
				num ^= this.DisplayIntValue.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A7C4 RID: 42948 RVA: 0x001C539B File Offset: 0x001C359B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A7C5 RID: 42949 RVA: 0x001C53A3 File Offset: 0x001C35A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A7C6 RID: 42950 RVA: 0x001C53AC File Offset: 0x001C35AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DisplayFloatValue != 0f)
			{
				output.WriteRawTag(93);
				output.WriteFloat(this.DisplayFloatValue);
			}
			if (this.DisplayIntValue != 0)
			{
				output.WriteRawTag(112);
				output.WriteInt32(this.DisplayIntValue);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A7C7 RID: 42951 RVA: 0x001C540C File Offset: 0x001C360C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DisplayFloatValue != 0f)
			{
				num += 5;
			}
			if (this.DisplayIntValue != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.DisplayIntValue);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A7C8 RID: 42952 RVA: 0x001C545C File Offset: 0x001C365C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDialogueOptionDisplayInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DisplayFloatValue != 0f)
			{
				this.DisplayFloatValue = other.DisplayFloatValue;
			}
			if (other.DisplayIntValue != 0)
			{
				this.DisplayIntValue = other.DisplayIntValue;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A7C9 RID: 42953 RVA: 0x001C54B1 File Offset: 0x001C36B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A7CA RID: 42954 RVA: 0x001C54BC File Offset: 0x001C36BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 93U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.DisplayIntValue = input.ReadInt32();
					}
				}
				else
				{
					this.DisplayFloatValue = input.ReadFloat();
				}
			}
		}

		// Token: 0x04004433 RID: 17459
		private static readonly MessageParser<RogueCommonDialogueOptionDisplayInfo> _parser = new MessageParser<RogueCommonDialogueOptionDisplayInfo>(() => new RogueCommonDialogueOptionDisplayInfo());

		// Token: 0x04004434 RID: 17460
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004435 RID: 17461
		public const int DisplayFloatValueFieldNumber = 11;

		// Token: 0x04004436 RID: 17462
		private float displayFloatValue_;

		// Token: 0x04004437 RID: 17463
		public const int DisplayIntValueFieldNumber = 14;

		// Token: 0x04004438 RID: 17464
		private int displayIntValue_;
	}
}
